<DIV class="wlWriterEditableSmartContent" id="57F11A72-B0E5-49c7-9094-E3A15BD5B5E7:f46766d5-c318-4729-8739-7276f464fe83"
	contentEditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; FLOAT: none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"><PRE style="BACKGROUND-COLOR: white"><DIV><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><SPAN style="COLOR: #0000ff">Public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">Class</SPAN><SPAN style="COLOR: #000000"> TabStripChildControls
    </SPAN><SPAN style="COLOR: #0000ff">Inherits</SPAN><SPAN style="COLOR: #000000"> System.Web.UI.Page

</SPAN><SPAN style="COLOR: #0000ff">#Region</SPAN><SPAN style="COLOR: #000000"> " Web Form Designer Generated Code "</SPAN><SPAN style="COLOR: #000000">

    </SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">This call is required by the Web Form Designer.</SPAN><SPAN style="COLOR: #008000">
</SPAN><SPAN style="COLOR: #000000">    </SPAN><SPAN style="COLOR: #000000">&lt;</SPAN><SPAN style="COLOR: #000000">System.Diagnostics.DebuggerStepThrough()</SPAN><SPAN style="COLOR: #000000">&gt;</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">Private</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">Sub</SPAN><SPAN style="COLOR: #000000"> InitializeComponent()

    </SPAN><SPAN style="COLOR: #0000ff">End Sub</SPAN><SPAN style="COLOR: #000000">
    </SPAN><SPAN style="COLOR: #0000ff">Protected</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">WithEvents</SPAN><SPAN style="COLOR: #000000"> MyDNNTabStrip </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> DotNetNuke.UI.WebControls.DNNTabStrip
    </SPAN><SPAN style="COLOR: #0000ff">Protected</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">WithEvents</SPAN><SPAN style="COLOR: #000000"> txtRequired </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> System.Web.UI.WebControls.TextBox
    </SPAN><SPAN style="COLOR: #0000ff">Protected</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">WithEvents</SPAN><SPAN style="COLOR: #000000"> RequiredFieldValidator1 </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> System.Web.UI.WebControls.RequiredFieldValidator
    </SPAN><SPAN style="COLOR: #0000ff">Protected</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">WithEvents</SPAN><SPAN style="COLOR: #000000"> lblRequired </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> System.Web.UI.WebControls.Label
    </SPAN><SPAN style="COLOR: #0000ff">Protected</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">WithEvents</SPAN><SPAN style="COLOR: #000000"> tabValidators </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> DotNetNuke.UI.WebControls.DNNTab
    </SPAN><SPAN style="COLOR: #0000ff">Protected</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">WithEvents</SPAN><SPAN style="COLOR: #000000"> tabDropDownLists </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> DotNetNuke.UI.WebControls.DNNTab
    </SPAN><SPAN style="COLOR: #0000ff">Protected</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">WithEvents</SPAN><SPAN style="COLOR: #000000"> btnPostBack </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> System.Web.UI.WebControls.Button
    </SPAN><SPAN style="COLOR: #0000ff">Protected</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">WithEvents</SPAN><SPAN style="COLOR: #000000"> lblTime </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> System.Web.UI.WebControls.Label
    </SPAN><SPAN style="COLOR: #0000ff">Protected</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">WithEvents</SPAN><SPAN style="COLOR: #000000"> btnDDLSave </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> Button
    </SPAN><SPAN style="COLOR: #0000ff">Protected</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">WithEvents</SPAN><SPAN style="COLOR: #000000"> ddlStatic </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> DropDownList
    </SPAN><SPAN style="COLOR: #0000ff">Protected</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">WithEvents</SPAN><SPAN style="COLOR: #000000"> ddlDynamic1 </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> DropDownList
    </SPAN><SPAN style="COLOR: #0000ff">Protected</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">WithEvents</SPAN><SPAN style="COLOR: #000000"> txtDropDowns </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> TextBox

    </SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">NOTE: The following placeholder declaration is required by the Web Form Designer.</SPAN><SPAN style="COLOR: #008000">
</SPAN><SPAN style="COLOR: #000000">    </SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">Do not delete or move it.</SPAN><SPAN style="COLOR: #008000">
</SPAN><SPAN style="COLOR: #000000">    </SPAN><SPAN style="COLOR: #0000ff">Private</SPAN><SPAN style="COLOR: #000000"> designerPlaceholderDeclaration </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> System.Object

    </SPAN><SPAN style="COLOR: #0000ff">Private</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">Sub</SPAN><SPAN style="COLOR: #000000"> Page_Init(</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000"> sender </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> System.Object, </SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000"> e </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> System.EventArgs) </SPAN><SPAN style="COLOR: #0000ff">Handles</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">MyBase</SPAN><SPAN style="COLOR: #000000">.Init
        </SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">CODEGEN: This method call is required by the Web Form Designer</SPAN><SPAN style="COLOR: #008000">
</SPAN><SPAN style="COLOR: #000000">        </SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">Do not modify it using the code editor.</SPAN><SPAN style="COLOR: #008000">
</SPAN><SPAN style="COLOR: #000000">        InitializeComponent()
    </SPAN><SPAN style="COLOR: #0000ff">End Sub</SPAN><SPAN style="COLOR: #000000">

</SPAN><SPAN style="COLOR: #0000ff">#End Region</SPAN><SPAN style="COLOR: #000000">
    </SPAN><SPAN style="COLOR: #0000ff">Protected</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">Overrides</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">Sub</SPAN><SPAN style="COLOR: #000000"> OnInit(</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000"> e </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> System.EventArgs)
        </SPAN><SPAN style="COLOR: #0000ff">MyBase</SPAN><SPAN style="COLOR: #000000">.OnInit(e)
        DotNetNuke.UI.Utilities.ClientAPI.HandleClientAPICallbackEvent(</SPAN><SPAN style="COLOR: #0000ff">Me</SPAN><SPAN style="COLOR: #000000">)
    </SPAN><SPAN style="COLOR: #0000ff">End Sub</SPAN><SPAN style="COLOR: #000000">

    </SPAN><SPAN style="COLOR: #0000ff">Private</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">Sub</SPAN><SPAN style="COLOR: #000000"> Page_Load(</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000"> sender </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> System.Object, </SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000"> e </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> System.EventArgs) </SPAN><SPAN style="COLOR: #0000ff">Handles</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">MyBase</SPAN><SPAN style="COLOR: #000000">.Load
        </SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">Put user code to initialize the page here</SPAN><SPAN style="COLOR: #008000">
</SPAN><SPAN style="COLOR: #000000">        </SPAN><SPAN style="COLOR: #0000ff">Me</SPAN><SPAN style="COLOR: #000000">.lblTime.Text </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Now.ToString
    </SPAN><SPAN style="COLOR: #0000ff">End Sub</SPAN><SPAN style="COLOR: #000000">

    </SPAN><SPAN style="COLOR: #0000ff">Private</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">Sub</SPAN><SPAN style="COLOR: #000000"> MyDNNLabelEdit_UpdateLabel(</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000"> source </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">Object</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000"> e </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> UI.WebControls.DNNLabelEditEventArgs)
        </SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">update database here</SPAN><SPAN style="COLOR: #008000">
</SPAN><SPAN style="COLOR: #000000">    </SPAN><SPAN style="COLOR: #0000ff">End Sub</SPAN><SPAN style="COLOR: #000000">

    </SPAN><SPAN style="COLOR: #0000ff">Private</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">Sub</SPAN><SPAN style="COLOR: #000000"> tabDropDownLists_SetupDefaults() </SPAN><SPAN style="COLOR: #0000ff">Handles</SPAN><SPAN style="COLOR: #000000"> tabDropDownLists.SetupDefaults
        </SPAN><SPAN style="COLOR: #0000ff">If</SPAN><SPAN style="COLOR: #000000"> tabDropDownLists.IsPostBack </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">False</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">Then</SPAN><SPAN style="COLOR: #000000">
            </SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">If this is the first time the tab is loaded, we need to set it up</SPAN><SPAN style="COLOR: #008000">
</SPAN><SPAN style="COLOR: #000000">            PopulateDropDownLists()
        </SPAN><SPAN style="COLOR: #0000ff">End</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">If</SPAN><SPAN style="COLOR: #000000">
    </SPAN><SPAN style="COLOR: #0000ff">End Sub</SPAN><SPAN style="COLOR: #000000">

    </SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">We are populating the dropdowns to simulate viewstate.  This event is only fired if </SPAN><SPAN style="COLOR: #008000">
</SPAN><SPAN style="COLOR: #000000">    </SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">a tab has been rendered to the client.  Shortly after this event the LoadPostData </SPAN><SPAN style="COLOR: #008000">
</SPAN><SPAN style="COLOR: #000000">    </SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">event of the dropdowns will be called as part of the ASP.NET lifecycle.</SPAN><SPAN style="COLOR: #008000">
</SPAN><SPAN style="COLOR: #000000">    </SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">If the DropDown has items at this point, things like SelectedValue and SelectedItem</SPAN><SPAN style="COLOR: #008000">
</SPAN><SPAN style="COLOR: #000000">    </SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">will function.  </SPAN><SPAN style="COLOR: #008000">
</SPAN><SPAN style="COLOR: #000000">    </SPAN><SPAN style="COLOR: #0000ff">Private</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">Sub</SPAN><SPAN style="COLOR: #000000"> tabDropDownLists_PreLoadPostData() </SPAN><SPAN style="COLOR: #0000ff">Handles</SPAN><SPAN style="COLOR: #000000"> tabDropDownLists.PreLoadPostData
        PopulateDropDownLists()
    </SPAN><SPAN style="COLOR: #0000ff">End Sub</SPAN><SPAN style="COLOR: #000000">

    </SPAN><SPAN style="COLOR: #0000ff">Private</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">Sub</SPAN><SPAN style="COLOR: #000000"> PopulateDropDownLists()
        </SPAN><SPAN style="COLOR: #0000ff">Me</SPAN><SPAN style="COLOR: #000000">.ddlDynamic1.Items.Add(</SPAN><SPAN style="COLOR: #0000ff">New</SPAN><SPAN style="COLOR: #000000"> ListItem(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Dynamic1Text</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Dynamic1Value</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">))
        </SPAN><SPAN style="COLOR: #0000ff">Me</SPAN><SPAN style="COLOR: #000000">.ddlDynamic1.Items.Add(</SPAN><SPAN style="COLOR: #0000ff">New</SPAN><SPAN style="COLOR: #000000"> ListItem(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Dynamic2Text</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Dynamic2Value</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">))
    </SPAN><SPAN style="COLOR: #0000ff">End Sub</SPAN><SPAN style="COLOR: #000000">

    </SPAN><SPAN style="COLOR: #0000ff">Private</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">Sub</SPAN><SPAN style="COLOR: #000000"> btnDDLSave_Click(</SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000"> sender </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">Object</SPAN><SPAN style="COLOR: #000000">, </SPAN><SPAN style="COLOR: #0000ff">ByVal</SPAN><SPAN style="COLOR: #000000"> e </SPAN><SPAN style="COLOR: #0000ff">As</SPAN><SPAN style="COLOR: #000000"> System.EventArgs) </SPAN><SPAN style="COLOR: #0000ff">Handles</SPAN><SPAN style="COLOR: #000000"> btnDDLSave.Click
        </SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">The Static dropdownlist does not require the use of viewstate, the values are </SPAN><SPAN style="COLOR: #008000">
</SPAN><SPAN style="COLOR: #000000">        </SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">persisted with the aspx markup.  However, the dynamic dropdown also works now </SPAN><SPAN style="COLOR: #008000">
</SPAN><SPAN style="COLOR: #000000">        </SPAN><SPAN style="COLOR: #008000">'</SPAN><SPAN style="COLOR: #008000">that we populated the items in the PreLoadPostData event.</SPAN><SPAN style="COLOR: #008000">
</SPAN><SPAN style="COLOR: #000000">        txtDropDowns.Text </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">ddlStatic SelectedValue=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000"> ddlStatic.SelectedValue </SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000"> vbCrLf </SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">ddlDynamic SelectedValue=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">&amp;</SPAN><SPAN style="COLOR: #000000"> ddlDynamic1.SelectedValue
    </SPAN><SPAN style="COLOR: #0000ff">End Sub</SPAN><SPAN style="COLOR: #000000">

</SPAN><SPAN style="COLOR: #0000ff">End Class</SPAN><SPAN style="COLOR: #000000">
</SPAN></DIV></PRE>
</DIV>
